<?php
namespace app\index\controller;

use think\facade\Request;
use app\common\model\ConfigsModel;
class Index extends Base
{
    public function index()
    {
        $configModel = new ConfigsModel();
        $summarize = $configModel->findByCname('summarize');
        $site_keywords = $configModel->findByCname('site_keywords');
        $index_title = $configModel->findByCname('index_title');
        $this->assign('summarize',$summarize);
        $this->assign('site_keywords',$site_keywords);
        $this->assign('index_title',$index_title);
        return view();
    }

    public function hello($name = 'ThinkPHP5')
    {
        return 'hello,' . $name;
    }
}
